home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer Helper 1: Phil & Dave's Excellent CD
/
Excellent CD HFS.raw
/
Moof
/
Goodies
/
MPW Goodies
/
MPW Goodies⁄DTS
/
CompareLastRevision
< prev
next >
Wrap
Text File
|
1989-04-13
|
919b
|
40 lines
# CompareLastRevision - compare a file with the last revision of it
#
# Usage: CompareLastRevision file
#
# Status: CompareLastRevision returns the status value from Compare.
#
# CompareLastRevision runs a compare command with the last revision
# of a file checked out for modification.
#
# © Apple Computer, Inc. 1988
# All rights reserved.
Set Exit 0
For File In {"Parameters"}
If "{File}" !~ /:*([¬:]+:*)*([¬:]+)®1/
Echo "### {0} - “{File}”: bad file name"
Continue
End
Set Short "{®1}"
Set Info "`ProjectInfo "{File}"`"
If "{Info}" !~ /≈Project: (≈∫)®1 ≈/
Echo "### {0} - “{File}”: not part of project"
Continue
End
Set Project "{®1}"
CheckOut -d "{Boot}" -project "{Project}" "{Short}"
Set CheckOutStatus {Status}
If {CheckOutStatus} != 0
Echo "### {0} - unable to check out “{File}”"
Exit {CheckOutStatus}
End
Compare -n -t -x "{Boot}{Short}" "{File}"
Delete -i "{Boot}{Short}"
End